<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>{$title|default=''}{if !empty($title)} · {/if}{:sysconf('site_name')}</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <link rel="shortcut icon" href="{:sysconf('browser_icon')}"/>
    <link rel="stylesheet" href="__STATIC__/plugs/layui/css/layui.css?ver={:date('ymd')}"/>
    <script src="__STATIC__/plugs/echarts/echarts.min.js"></script>
</head>
<body>
<!-- 为ECharts准备一个具备大小（宽高）的Dom -->
<div id="main" style="width: 100%;height:500px;margin: 0 auto"></div>
</body>

<script type="text/javascript">
    // 基于准备好的dom，初始化echarts实例
    var myChart         = echarts.init(document.getElementById('main'));

    /*var easingFuncs = {
        cubicIn: function (k) {
            return k;
        },
    }*/

//    var colors = ['#5793f3'];
    // 指定图表的配置项和数据
    var option          = {
//        color: colors,
        backgroundColor: '#FBFBFB',
//        animation:false,
        title: {
            text: '{$title}'
        },
        tooltip: {
            trigger: 'axis'
        },
        legend: {
            data:['销量']
        },
        calculable : true,
        grid: {
            left: '3%',
            right: '4%',
            bottom: '3%',
            containLabel: true
        },
        toolbox: {
            feature: {
                saveAsImage: {}
            }
        },
        xAxis: {
            axisLabel:{
                rotate: 30,
                interval:0
            },//横轴数值倾斜
            boundaryGap: false,
            data: {$days},
        },
        yAxis: {},
        series: [{
            name: '销量',
            type: 'line',
            symbol:'none',
            smooth: 0.2,
            data: {$totalmoney}
        }]
    };

    // 使用刚指定的配置项和数据显示图表。
    myChart         .setOption(option      );
</script>

</html>


